package com.changgou;

import com.xpand.starter.canal.annotation.EnableCanalClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author: wzw
 * @Date: 2020/12/12 22:26
 * @version: 1.8
 */
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})//启动类(排除=数据库启动类)
@EnableEurekaClient//启动Eureka客户端
@EnableCanalClient//启动Canal客户端
@EnableFeignClients(basePackages = {"com.changgou.content.feign"})//开启Feign
public class CanalApplication {

    public static void main(String[] args) {
        SpringApplication.run(CanalApplication.class,args);
    }
}
